All Questions
Tagged with iosuser-interface
10 questions
6votes
0answers
8kviews
Page and center UICollectionView like App Store
I need a collection view to page through cells and center it like the App Store, where a portion of the previous and next cells look like this: The native ...
2votes
0answers
194views
Comments on singleton Swift status bar alert
I was trying out some projects like a status bar alert. It made most sense for this status bar to be a singleton: there is only one alert visible at a time. ...
2votes
1answer
17kviews
Setting constraints for dynamic views in iOS
I have an app which uses Stack Views to update its UI depending on the number of pigs. For example below, 1 pig and 4 pigs. I set up Stack Views in Storyboard and set isHidden to true based on how ...
3votes
0answers
173views
Adding swipe support to multiple classes
I have implemented swipe functionality using UIPanGestureRecognizer in a project. What I have done is added PanGesture to ...
3votes
1answer
3kviews
Set a font for a UITextView if the font is nil or not equal to desired font
Main question I am setting a font for a UITextView that is a subview in a custom view. I only set it if the user didn't specify the font size in the Interface Builder. I have the following working ...
4votes
2answers
7kviews
Removing a subview with a subview from a UIView without memory leaks
I made a custom UITextView for vertical Mongolian writing. It is made by subclassing UIView, which has a subview called ...
3votes
1answer
704views
HMSegmentedControl react to tapping on currently selected segment
I'm using HMSegmentedControl, an open-source UISegmentedControl subclass. I'm trying to react to the user tapping on the currently selected segment. HMSegmentedControl only supports reacting to a ...
2votes
1answer
12kviews
Correct Implementation of Custom UIView into ViewController Programatically
I am familiar with using storyboards to construct UI elements in Xcode, but I am only beginning to learn how to make UI programmatically (without a storyboard). I wanted to know if this is the ...
6votes
2answers
477views
User Interface for Strategy Game
I've been working a strategy game for iOS for a little while, and each time I add functionality to the game model I'm finding myself building a lot of UI code to sync up with it. I believe that my ...
5votes
3answers
13kviews
Custom iOS chat interface design & functionality
Preamble So, as most of you have likely also noticed, chat components, at least at a basic level, are becoming very common with lots of apps. I found myself tweaking and redesigning the interface ...